package com.own.business.system.account.business.hook.impl;

import com.own.business.system.account.business.hook.SystemUserTextRegisterMethodHook;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * SystemUserTextRegisterMethodHookDefaultAutoConfiguration
 *
 * @author chenxueli
 * @date 2023-12-26 13:50:10
 */
@Slf4j
@SpringBootConfiguration
public class SystemUserTextRegisterMethodHookDefaultAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(SystemUserTextRegisterMethodHook.class)
    public SystemUserTextRegisterMethodHook systemUserTextRegisterMethodHook() {
        return (account, password, type) -> null;
    }

}
